Linear and O ( n log n ) Time Minimum - Cost Matching Algorithms for Quasi - convex Tours ∗ Samuel
نویسندگان
چکیده
Let G be a complete, weighted, undirected, bipartite graph with n red nodes, n blue nodes, and symmetric cost function c(x, y). A maximum matching for G consists of min{n, n′} edges from distinct red nodes to distinct blue nodes. Our objective is to find a minimumcost maximum matching, i.e., one for which the sum of the edge costs has minimal value. This is the weighted bipartite matching problem; or as it is sometimes called, the assignment problem. We report a new and very fast algorithm for an abstract special case of this problem. Our first requirement is that the nodes of the graph are given as a ‘quasi-convex tour’. This means that they are provided circularly ordered as x1, . . . , xN where N = n + n ′ , and that for any xi, xj, xk, xl , not necessarily adjacent but in tour order, with xi, xj of one color and xk, xl of the opposite color, the following inequality holds: c(xi, xl) + c(xj, xk) ≤ c(xi, xk) + c(xj, xl) If n = n , our algorithm then finds a minimum-cost matching in O(N logN ) time. Given an additional condition of ‘weak analyticity’, the time complexity is reduced to O(N ). In both cases only linear space is required. In the special case where the circular ordering is a line-like ordering, these results apply even if n 6= n . Our algorithm is conceptually elegant, straightforward to implement, and free of large hidden constants. As such we expect that it may be of practical value in several problem areas. Many natural graphs satisfy the quasi-convexity condition. These include graphs which lie on a line or circle with the canonical tour ordering, and costs given by any concave-down function of arclength — or graphs whose nodes lie on an arbitrary convex planar figure with costs provided by Euclidean distance. The weak-analyticity condition applies to points lying on a circle with costs given by Euclidian distance, and we thus obtain the first linear-time algorithm for the minimum-cost matching problem in this setting (and also where costs are given by the L1 or L∞ metrics). Given two symbol strings over the same alphabet, we may imagine one to be red and the other blue, and use our algorithms to compute string distances. In this formulation, the strings are embedded in the real line and multiple independent assignment problems are solved; one for each distinct alphabet symbol. While these examples are somewhat geometrical, it is important to remember that our conditions are purely abstract; hence, our algorithms may find application to problems in which no direct connection to geometry is evident.
منابع مشابه
Linear and O ( n log n ) Time Minimum - Cost Matching Algorithms for Quasi - convex Tours ( Extended Abstract ) Samuel
Let G be a complete, weighted, undirected, bipartite graph with n red nodes, n blue nodes, and symmetric cost function c(x, y) . A maximum matching for G consists of min{n, n} edges from distinct red nodes to distinct blue nodes. Our objective is to find a minimum-cost maximum matching, i.e. one for which the sum of the edge costs has minimal value. This is the weighted bipartite matching probl...
متن کاملLinear and O(n log n) Time Minimum-Cost Matching Algorithms for Quasi-Convex Tours
Let G be a complete, weighted, undirected, bipartite graph with n red nodes, n0 blue nodes, and symmetric cost function c(x; y). A maximum matching for G consists of minfn; n0g edges from distinct red nodes to distinct blue nodes. Our objective is to nd a minimumcost maximum matching, i.e., one for which the sum of the edge costs has minimal value. This is the weighted bipartite matching proble...
متن کاملتعبیه ی هندسی درخت درنقاط داخل یک چندضلعی با حداقل تعداد خم
In this paper we consider to embed a tree T with N vertices on a set of N points inside a simple polygon on n vertices and the goal is to minimize the number of bends. The main idea of our algorithm is modeling the problem into graph matching problem and uses the graph matching algorithms. We apply the concept of error-correction transformation and find the appropriate cost function then we per...
متن کاملA Capacity Scaling Algorithm for The Constrained Maximum Flow Problem
The constrained maximum flow problem is to send the maximum possible flow from a source node s to a sink node t in a directed network subject to a budget constraint that the cost of flow is no more than D. In this paper, we consider two versions of this problem: (i) when the cost of flow on each arc is a linear function of the amount of flow; and (ii) when the cost of flow is a convex function ...
متن کاملOn a capacity scaling algorithm for the constrained maximum flow problem
The constrained maximum flow problem is to send the maximum possible flow from a source node s to a sink node t in a directed network subject to a budget constraint that the cost of flow is no more than D. In this paper, we consider two versions of this problem: (i) when the cost of flow on each arc is a linear function of the amount of flow; and (ii) when the cost of flow is a convex function ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994